package com.example.repository;

import com.example.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;


public interface UserRepository extends JpaRepository<User,Integer> {
    //添加用户
    User findUserById(Integer id);
    User findUserByName(String name);
    boolean existsByName(String name);
}
